import { Tab } from '@/components/SwitchTabs/index.vue'

export const getTabs = (): Tab[] => {
  return [
    {
      name: '对话任务',
      key: '/admin/learning-tasks-manage/dialog-list',
      auth: 'tasks-dialog-list'
    },
    {
      name: '绘图任务',
      key: '/admin/learning-tasks-manage/draw-list',
      auth: 'tasks-draw-list'
    }
  ]
}

export const getStatusLabel = (type: number | string) => {
  let label = ''
  switch (type) {
    case 0:
      label = '未提交'
      break
    case 1:
      label = '未评价'
      break
    case 2:
      label = '已评价'
      break

    default:
      label = ''
  }
  return label
}

export const getStatusColor = (type: number | string) => {
  let label = ''
  switch (type) {
    case 0:
      label = 'rgba(17, 22, 31, 0.29)'
      break
    case 1:
      label = 'rgba(245, 151, 0, 1)'
      break
    case 2:
      label = 'rgba(92, 201, 105, 1)'
      break

    default:
      label = ''
  }
  return label
}
